package com.ls.controller.model.serviceIn;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName AddServiceInModel
 * @Description 下游业务入库model
 * @Author pengyu
 * @Date 2019/9/13 10:17
 * @Version 1.0
 **/
@Data
@ApiModel("下游业务入库model")
public class AddServiceInModel {

    /**
     * 下游业务主键ID
     */
    @ApiModelProperty(value = "下游业务Id")
    @NotNull(message = "下游业务Id不能为空")
    private Long serviceId;

    /**
     * 入库数量
     */
    @ApiModelProperty(value = "入库数量")
    @NotNull(message = "入库数量不能为空")
    @Min(value =1,message = "最小1条")
    @Max(value = 99999,message = "最大99999条")
    private Integer inNo;

}
